import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/home/index.vue'),
    meta: { title: '首页' },
  },
  {
    path: '/digitalEmployee',
    name: 'digitalEmployee',
    component: () => import('../views/solution/digitalEmployeeIndex.vue'),
    meta: { title: '智企云平台' },
  },

  {
    path: '/bovineVision',
    name: 'bovineVision',
    component: () => import('../views/solution/bovineVisionIndex.vue'),
    meta: { title: '牛视3.0' },
  },
  {
    path: '/digitalMan',
    name: 'digitalMan',
    component: () => import('../views/solution/digitalManIndex.vue'),
    meta: { title: '易播数字人' },
  },
  {
    path: '/coreTechnology',
    name: 'coreTechnology',
    component: () => import('../views/coreTechnology/index.vue'),
    meta: { title: '核心技术' },
  },
  {
    path: '/channel',
    name: 'channel',
    component: () => import('../views/channel/index.vue'),
    meta: { title: '渠道合作' },
  },
  {
    path: '/companyIntroduction',
    name: 'companyIntroduction',
    component: () => import('../views/aboutUs/companyIntroductionIndex.vue'),
    meta: { title: '品达集团' },
  },
  {
    path: '/news',
    name: 'news',
    component: () => import('../views/aboutUs/newsIndex.vue'),
    meta: { title: '新闻资讯' },
  },
  {
    path: '/aboutUs',
    name: 'aboutUs',
    component: () => import('../views/aboutUs/aboutUsIndex.vue'),
    meta: { title: '关于我们' },
  },
  {
    path: '/form',
    name: 'formPage',
    component: () => import('../views/form-page/index.vue'),
    meta: { title: '填写信息' },
  },
  {
    path: '*',
    component: () => import('@/views/error-page/404'),
  },
];

const router = new VueRouter({
  routes,
  mode: "history",
})
router.afterEach(() => {
  window.scrollTo(0, 0);
});
export default router
